package com.yingsheng.bi.hks.basic.enums;

/**
 * 服务
 */
public enum EnumServiceInfo {

    // 定义枚举实例时传递相应的参数
    childCare("childCare.childCareAdd", "幼儿照护", "http://cdn.nbyingchuang.cn/miniapp-xjy-dev/public/fenlei/youerzhaohu.png"),
    childButler("childButler.childButlerAdd", "育儿管家", "http://cdn.nbyingchuang.cn/miniapp-xjy-dev/public/fenlei/yuerguanjia1.png"),
    childCompanion("childCompanion.childCompanionAdd", "儿童心里陪伴师", "http://cdn.nbyingchuang.cn/miniapp-xjy-dev/public/fenlei/yuerguanjia1.png"),
    householdCare("householdCare.householdCareAdd", "家务料理", "http://cdn.nbyingchuang.cn/miniapp-xjy-dev/public/fenlei/jiawuliaoli.png"),
    olderHomeCare("olderHomeCare.olderHomeCareAdd", "居家养老", "http://cdn.nbyingchuang.cn/miniapp-xjy-dev/public/fenlei/jujiayanglao.png"),
    obstetricNursing("obstetricNursing.obstetricNursingAdd", "母婴护理", "http://cdn.nbyingchuang.cn/miniapp-xjy-dev/public/fenlei/muyinghuli.png"),
    dailyClean("dailyClean.dailyCleanAdd", "日常保洁", "http://cdn.nbyingchuang.cn/miniapp-xjy-dev/public/fenlei/richangbaojie.png"),
    fineClean("fineClean.fineCleanAdd", "精细保洁", "http://cdn.nbyingchuang.cn/miniapp-xjy-dev/public/fenlei/jingxibaojie.png"),
    wastelandClean("wastelandClean.wastelandCleanAdd", "新居开荒", "http://cdn.nbyingchuang.cn/miniapp-xjy-dev/public/fenlei/xinjukaihuang.png"),
    yearClean("yearClean.yearCleanAdd", "年度套餐", "http://cdn.nbyingchuang.cn/miniapp-xjy-dev/public/fenlei/niandutaocan.png"),
    childHomeStorage("childHomeStorage.childHomeStorageAdd", "儿童房整理收纳", "http://cdn.nbyingchuang.cn/miniapp-xjy-dev/public/fenlei/ertongfangzhenglishouna.png"),
    wardrobeStorage("wardrobeStorage.wardrobeStorageAdd", "衣橱整理收纳", "http://cdn.nbyingchuang.cn/miniapp-xjy-dev/public/fenlei/yichuzhenglishouna.png"),
    canteenStorage("canteenStorage.canteenStorageAdd", "客餐厅整理收纳", "http://cdn.nbyingchuang.cn/miniapp-xjy-dev/public/fenlei/kecantingzhenglishouna.png"),
    studyStorage("studyStorage.studyStorageAdd", "书房整理收纳", "http://cdn.nbyingchuang.cn/miniapp-xjy-dev/public/fenlei/shufangzhenglishouna.png"),
    dailyStorage("dailyStorage.dailyStorageAdd", "日常整理收纳", "http://cdn.nbyingchuang.cn/miniapp-xjy-dev/public/fenlei/richangzhengli.png"),
    multiyearStorage("multiyearStorage.multiyearStorageAdd", "年度陪伴式整理", "http://cdn.nbyingchuang.cn/miniapp-xjy-dev/public/fenlei/niandupeibanshizhengli.png"),
    headButler("headButler.headButlerAdd", "首席管家", "http://cdn.nbyingchuang.cn/miniapp-xjy-dev/public/fenlei/shouxiguanjia.png"),
    domesticHousekeeper("domesticHousekeeper.domesticHousekeeperAdd", "家庭事务管家", "http://cdn.nbyingchuang.cn/miniapp-xjy-dev/public/fenlei/jiatingshiwu.png"),
    homeEducationHousekeeper("homeEducationHousekeeper.homeEducationHousekeeperAdd", "家庭教育管家", "http://cdn.nbyingchuang.cn/miniapp-xjy-dev/public/fenlei/jiatingjiaoyu.png"),
    internationalEducationManager("internationalEducationManager.internationalEducationManagerAdd", "国际教育管家", "http://cdn.nbyingchuang.cn/miniapp-xjy-dev/public/fenlei/guojijiaoyu.png"),
    petFeed("petFeed.petFeedAdd", "宠物喂养", "http://cdn.nbyingchuang.cn/miniapp-xjy-dev/public/fenlei/chongwuweiyang.png"),
    petWalk("petWalk.petWalkAdd", "宠物遛养", "http://cdn.nbyingchuang.cn/miniapp-xjy-dev/public/fenlei/chongwuliuyang.png"),
    privateChef("privateChef.privateChefAdd", "家宴私厨", "http://cdn.nbyingchuang.cn/miniapp-xjy-dev/public/fenlei/jiayansichu.png"),
    electricalClean("electricalClean.electricalCleanAdd", "家电清洗", "http://cdn.nbyingchuang.cn/miniapp-xjy-dev/public/fenlei/jiadianqingxi.png"),
    pipeDredging("pipeDredging.pipeDredgingAdd", "管道疏通", "http://cdn.nbyingchuang.cn/miniapp-xjy-dev/public/fenlei/guandaoshutong.png"),
    unlockTheDoor("unlockTheDoor.unlockTheDoorAdd", "上门开锁", "http://cdn.nbyingchuang.cn/miniapp-xjy-dev/public/fenlei/shangmenkaisuo.png"),
    waterElectricityRepair("waterElectricityRepair.waterElectricityRepairAdd", "水电维修", "http://cdn.nbyingchuang.cn/miniapp-xjy-dev/public/fenlei/shiudianweixiu.png"),
    electricalRepair("electricalRepair.electricalRepairAdd", "家电维修", "http://cdn.nbyingchuang.cn/miniapp-xjy-dev/public/fenlei/jiadianweixiu.png"),
    floorWaxing("floorWaxing.floorWaxingAdd", "地板打蜡", "http://cdn.nbyingchuang.cn/miniapp-xjy-dev/public/fenlei/dibandala.png"),
    leatherGoodsMaintenance("leatherGoodsMaintenance.leatherGoodsMaintenanceAdd", "皮具保养", "http://cdn.nbyingchuang.cn/miniapp-xjy-dev/public/fenlei/pijubaoyang.png"),
    businessAndGovernmentServices("businessAndGovernmentServices.businessAndGovernmentServicesAdd", "政企服务", "http://cdn.nbyingchuang.cn/miniapp-xjy-dev/public/fenlei/zhengqifuwu.png"),
    medicalChaperon("medicalChaperon.medicalChaperonAdd", "陪诊服务", "http://cdn.nbyingchuang.cn/miniapp-xjy-dev/public/fenlei/peizhenfuwu.png"),
    curtainClean("curtainClean.curtainCleanAdd", "窗帘拆洗", "http://cdn.nbyingchuang.cn/miniapp-xjy-dev/public/fenlei/chuanglianchaixi.png"),
    carpetWash("carpetWash.carpetWashAdd", "地毯洗护", "http://cdn.nbyingchuang.cn/miniapp-xjy-dev/public/fenlei/ditanxihu.png"),
    fabricSofa("fabricSofa.fabricSofaAdd", "布艺沙发", "http://cdn.nbyingchuang.cn/miniapp-xjy-dev/public/fenlei/buyishafa.png"),
    chandelierClean("chandelierClean.chandelierCleanAdd", "吊灯洗护", "http://cdn.nbyingchuang.cn/miniapp-xjy-dev/public/fenlei/diaodengxihu.png"),
    leatherLuxuryCare("leatherLuxuryCare.leatherLuxuryCareAdd", "皮具奢护", "http://cdn.nbyingchuang.cn/miniapp-xjy-dev/public/fenlei/pijushehu.png"),
    ENUM_THREE("003", "NameThree", "ValueThree");

    // 枚举的属性
    private final String code;
    private final String name;
    private final String imageUrl;

    // 私有构造函数，用于初始化枚举实例
    EnumServiceInfo(String code, String name, String value) {
        this.code = code;
        this.name = name;
        this.imageUrl = value;
    }

    // Getter方法
    public String getCode() {
        return code;
    }

    public String getName() {
        return name;
    }

    public String getImageUrl() {
        return imageUrl;
    }

    // 根据 key 获取对应的 Fruit 枚举对象
    public static EnumServiceInfo getByCode(String code) {
        for (EnumServiceInfo info : values()) {
            if (info.getCode().equals(code)) {
                return info;
            }
        }
        throw new IllegalArgumentException("Unknown key: " + code);
    }
}
